package com.qingke.Junit;

import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;

import org.junit.Test;

public class LearnJunit {
	public static boolean ShouldSleep(boolean weekday,boolean weekends){
		return !weekday || weekends;
	}
	
	@Test
	public void testShouldSleep(){
		assertFalse(ShouldSleep(true,false));
	}
	
	@Test
	public void testShouSleep2(){
		assertTrue(ShouldSleep(false,true));
	}
}
